<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">

<h:head>
	<style>
.ui-widget,.ui-widget .ui-widget {
	font-size: 11px !important;
}
</style>
	<title>Cadastro de Paises</title>
</h:head>
<body>
	<p:messages id="messages" showDetail="false" autoUpdate="true"
		closable="true" />
	<h:form id="mPaisForm">
		<p:panel id="mPaisPanel" style="border: none">
			<h2>Cadastro de Países</h2>
			<h:panelGrid id="gridCampos" columns="1">
				<h:outputText value="Código" />
				<p:inputText id="mPaisCodigo" value="#{beanPais.pais.id}" size="4"
					maxlength="4" disabled="true" />
				<h:outputText value="País: *" />
				<p:inputText id="mPaisPais" value="#{beanPais.pais.pais}" size="40"
					maxlength="40" />
				<h:outputText value="DDI" />
				<p:inputText id="mPaisDdi" value="#{beanPais.pais.ddi}" size="4"
					maxlength="3" mask="999" />
				<h:outputText value="Sigla" />
				<p:inputText id="mPaisSigla" value="#{beanPais.pais.sigla}" size="4"
					maxlength="4" mask="aaa" />
			</h:panelGrid>

			<br></br>
			<p:separator />
			<h:panelGrid columns="3" style="float: right;">
				<p:commandButton id="mPaisSalvar" value="Salvar"
					action="#{beanPais.save}" update="@form" />
				<p:commandButton id="mPaisLimpar" value="Limpar" type="reset" />
				<p:commandButton id="mPaisVoltar" value="Voltar"
					action="history.back()" />
			</h:panelGrid>

			<h:panelGrid columns="4" cellpadding="2" style="float: left;">
				<h:outputText value="Cadastro" />
				<p:inputText id="mPaisDataCad" value="#{beanPais.pais.criacao}"
					size="7" disabled="true">
					<f:convertDateTime pattern="dd/MM/yyyy" />
				</p:inputText>

				<h:outputText value="Ultima Alter. " />
				<p:inputText id="mPaisDataAlteracao"
					value="#{beanPais.pais.alteracao}" size="7" disabled="true">
					<f:convertDateTime pattern="dd/MM/yyyy" />
				</p:inputText>
			</h:panelGrid>
		</p:panel>
	</h:form>

</body>
</html>